<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layout::header">

</head>

<body>
<nav th:replace="layout::navbar"></nav>

<div class="newContainer">
    <div class="newCenter">
        <div class="newLeft">
    <h4>创建岗位信息</h4><br>
    <form th:action="@{/positions/save}" th:object="${position}" method="POST">
            <table >
                <tr >
                    <td>职位名称:</td>
                    <td colspan="2"><input type="text" th:field="*{name}"/></td>
                </tr>
                <tr>
                    <td>所在城市:</td>
                    <td colspan="2"><input type="text" th:field="*{city}"/></td>
                </tr>
                <tr>
                    <td>详细地点:</td>
                    <td colspan="2"><input type="text" th:field="*{place}"/></td>
                </tr>
                <tr>
                    <td>最低薪酬:</td>
                    <td colspan="2"><input type="text" th:field="*{money}"/></td>
                </tr>
                <tr>
                    <td>发布时间:</td>
                    <td colspan="2"><input type="text" th:field="*{time}"/></td>
                </tr>
                <tr>
                    <td>可选择信息:</td>
                    <td colspan="2"><select th:field="*{companies}" multiple="multiple">
                        <option th:each="company : ${allCompanies}" th:value="${company.companyId}" th:text="${company.companyName}"></option>
                    </select></td>
                </tr>

                <tr>
                    <td> </td><td colspan="2" th:align="right"><button type="submit">提交</button> </td>
                </tr>
            </table>
        </form>
     </div>
     <div class="newRight">
        <img src="../../static/img/02.webp" th:src="@{/img/02.webp}"/>

     </div>
   </div>

</div>
</body>

</html>
